package drds.binlog.database_driver.packets;

import drds.binlog.common.Authors;
import drds.common.Author;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

@Author(name = Authors.LI_YANG)
public abstract class PacketWithHeaderPacket implements Packet
{

    @Setter
    @Getter
    protected HeaderPacket headerPacket;

    protected PacketWithHeaderPacket()
    {
    }

    protected PacketWithHeaderPacket(HeaderPacket headerPacket)
    {
        setHeaderPacket(headerPacket);
    }

    public void setHeaderPacket(@NonNull HeaderPacket headerPacket)
    {
        this.headerPacket = headerPacket;
    }


}
